package com.ruoyi.cs.event.followRecord.mapper;

import com.ruoyi.cs.event.followRecord.domain.FollowRecord;
import com.ruoyi.cs.event.followRecord.domain.FollowRecordCond;

import java.util.List;

/**
 * 跟进记录
 */
public interface FollowRecordMapper {
    /**
     * 查找跟进记录
     * @param cond
     * @return
     */
    List<FollowRecord> selectFollowRecordList(FollowRecordCond cond);

    /**
     * 根据编号查找指定跟进记录
     * @param followId 跟进记录编号
     * @return
     */
    FollowRecord selectFollowRecordById(String followId);

    /**
     * 新增跟进记录
     * @param followRecord
     * @return
     */
    int insertFollowRecord(FollowRecord followRecord);

    /**
     * 更新跟进记录
     * @param followRecord
     * @return
     */
    int updateFollowRecord(FollowRecord followRecord);

    /**
     * 删除跟进记录
     * 仅修改跟进记录删除标志
     * @param followRecord
     * @return
     */
    int updateFollowRecordDeleteFlag(FollowRecord followRecord);

    /**
     * 获取最新的跟进记录编号
     * @return
     */
    String getFollowId();
}
